//
//  Item.m
//  Item
//
//  Created by flannery on 2018/12/17.
//  Copyright © 2018年 flannery. All rights reserved.
//

#import "Item.h"

#pragma ===热食物===
@implementation Burger
- (NSString *)name{
    return @"Burger";
}

- (id<Packing>)packing {
    return Wrapper.new;
}

- (double)price {
    return 0;
}

@end

@implementation VegBurger
- (NSString *)name{
    return @"Veg Burger";
}

- (id<Packing>)packing{
    return [super packing];
}

- (double)price{
    return 25.0f;
}
@end

@implementation ChickBurger
- (NSString *)name{
    return @"Chicken Burger";
}

- (id<Packing>)packing{
    return [super packing];
}

- (double)price{
    return 50.5f;
}
@end


#pragma ===冷饮===
@implementation ColdDrink
- (NSString *)name{
    return @"ColdDrink";
}

- (id<Packing>)packing{
    return Bottle.new;
}

- (double)price{
    return 0;
}
@end

@implementation Coke
- (NSString *)name{
    return @"Coke";
}

- (id<Packing>)packing{
    return [super packing];
}

- (double)price{
    return 30.0f;
}
@end

@implementation Pepsi
- (NSString *)name{
    return @"Pepsi";
}

- (id<Packing>)packing{
    return [super packing];
}

- (double)price{
    return 35.0f;
}
@end
